<%-- 
    Document   : userHomePage
    Created on : Feb 23, 2012, 4:34:18 PM
    Author     : inahbanana
--%>
<%@page import="java.text.SimpleDateFormat"%>
<%@page import="java.text.DateFormat"%>
<%@page import="java.sql.PreparedStatement"%>
<%@page import="java.sql.Connection"%>
<%@page import="DBConnection.ConnectionFactory"%>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>User Page</title>
         <link rel = "stylesheet" href= "main.css" type="text/css"/>
        <link rel = "stylesheet" href= "menu.css" type="text/css"/>
    </head>
    <body>
        
         <%
         String remoteAdd = request.getRemoteAddr();
        String Address = (String)session.getAttribute("IPAdd");
        String username = (String)session.getAttribute("username");
        
        if((String)session.getAttribute("username")== null)
            {
            response.sendRedirect("home.jsp");
            }
               
                             
             
        else{ %>
                 
   
          <label class="welcomemessage"> <% out.print("Welcome ");
                out.print(username);
                      out.println("!"); }%></label>
                
        <div id="header">
            
           
        </div>
        
       
           
        
             <div id="tabs24">
                 
                 <ul>          
       <li><a href="aboutusPage.jsp" >About Us</a></li>
                <li><a href="userHomePage.jsp" >Home</a></li>
                <li><a href="bookPage.jsp" >Books</a></li>
                <li><a href="magPage.jsp" >Magazines</a></li>
                <li><a href="audioPage.jsp" >Audio CDs</a></li>
                <li><a href="dvdPage.jsp" >DVDs</a></li>
                <li><a href="creditCard.jsp" >Manage Credit Cards</a></li>
                <li><a href="editProfile.jsp" >Edit Profile</a></li>
        <li><form class="formsearch">Search: <input class="formsearchfield" type="text" name="search">
            <input type="submit" name="submit" value ="search"/>
            </form>
        </li>
        
            </ul>
                 
                
        </div>
      
       <div id="maincontainer">
           
           <label>BESTSELLERS</label>
           <div id="BestSellersContainer">
               
               <div class="feat_prod_box">
               <div class="prod_img"><img class="thumb" width="129" height="208" src ="nightembrace.jpg" />
               </div>
               <div class="box_top"></div>
               <div class="prod_det_box">
               <div class="box_center">
                    <div class="prod_title">Night Pleasures</div>
                    <p class="details"> Night Pleasures: Kyrian of Thrace?an immortal who protects humans from vampires?wakes up one morning handcuffed to the one thing that can scare him: an accountant. But Amanda Devereaux turns out to be his perfect partner for hunting down a deadly foe, and for helping him to regain his soul.</p>
                    <a href="details.html" class="more">- more details -</a>
                    <div class="clear"></div>
                       
            <div class="clear"></div>
                    </div>
               </div>
               </div>
           <br>
           <br>
           <%-- NEXT FEATURED --%>  
           <br>
           <div class="feat_prod_box">
                <div class="prod_img"><img class="thumb" width="129" height="208" src ="untamed.jpg" />
               </div>
               <div class="box_top"></div>
               <div class="prod_det_box">
               <div class="box_center">
                    <div class="prod_title">Untamed Highlander</div>
                    <p class="details"> Druid-born and magic-blessed, Isla is one of the deadliest she-devils ever to serve the forces of darkness. As an immortal Highland warrior, it?s up to Hayden Campbell to destroy her and her kind. But for Hayden, Isla is more than a sworn enemy. She is temptation?</p>
                    <a href="details.html" class="more">- more details -</a>
                    
                    <div class="clear"></div>
                    </div>
                   
                   <a style="color:black"class="a" href="Logout.jsp">LOG OUT</a>
               
               </div>
            
               

        </div>
       </div>
       </div>
    </body>
</html>
